package day13;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class test5 {
    public static void main(String[] args) throws IOException {
        ObjectOutputStream oos=new ObjectOutputStream(new FileOutputStream("study\\src\\java.txt"));
        User s=new User("黄胜",20);
        oos.writeObject(s);
        oos.close();




    }

    }

